<div class="box border blue">
    <div class="box-title">
        <h4><i class="fa fa-table"></i>新建任务 {{addTask.name}} 的基本信息</h4>
        <div class="tools">
            <a ng-show="InfoShow" ng-click="display(0)" class="collapse" onclick="" title="More Infomation">More</a>
            <a ng-show="!InfoShow" ng-click="display(1)" class="collapse" title="Less Infomation">Less</a>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-hover">
            <tbody>
            <tr>
                <td style="width:20%">{{TaskKey.name}}</td>
                <td style="width:80%" ng-init="nameShow=true" ng-show="nameShow" ng-dblclick="nameShow=false;show(0)">{{addTask.name}}</td>
                <td style="width:80%"><input ng-keypress="setDirty()" id="show0" type="text" ng-show="!nameShow" ng-model="addTask.name" ng-blur="nameShow=true"> </td>
            </tr>
            <tr>
                <td>{{TaskKey.startTime}}</td>
                <td ng-init="startTShow=true" ng-show="startTShow" ng-dblclick="startTShow=false;show(1)">{{TimeShow(addTask.startTime)}}</td>
                <td><input placeholder="IE/FireFox用户请填写形如1970-01-01的时间格式" ng-keypress="setDirty()" id="show1" type="date" ng-show="!startTShow" ng-model="addTask.startTime" ng-blur="startTShow=true"></td>
                <!--<td><input  class="form-control datepicker-fullscreen" ng-keypress="setDirty()" id="show1" type="text" ng-show="!startTShow" ng-model="addTask.startTime" ng-blur="startTShow=true"></td>-->
            </tr>
            <tr>
                <td>{{TaskKey.endTime}}</td>
                <td ng-init="endTShow=true" ng-show="endTShow" ng-dblclick="endTShow=false;show(2)">{{TimeShow(addTask.endTime)}}</td>
                <td><input placeholder="IE/FireFox用户请填写形如1970-01-01的时间格式" ng-keypress="setDirty()" id="show2" type="date" ng-show="!endTShow" ng-model="addTask.endTime" ng-blur="endTShow=true"></td>
            </tr>
            <tr>
                <td>{{TaskKey.status}}</td>
                <td ng-init="statusShow=true;addclip.status='CONFIRM'" ng-show="statusShow" ng-dblclick="statusShow=false;show(3)">{{status_show(addTask.status)}}</td>
                <td>
                    <select class="col-md-5" id="show3" ng-show="!statusShow" ng-model="addTask.status" ng-blur="statusShow=true" ng-keypress="setDirty()"
                            ng-options="option.key as option.value for option in status_array">
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.remark}}</td>
                <td ng-init="actionRemarkShow=true" ng-show="actionRemarkShow" ng-dblclick="actionRemarkShow=false;show(5)">{{addTask.remark}}</td>
                <td><input ng-keypress="setDirty()" id="show5" type="text" ng-show="!actionRemarkShow" ng-model="addTask.remark" ng-blur="actionRemarkShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.who}}</td>
                <td ng-init="whoShow=true" ng-show="whoShow" ng-dblclick="whoShow=false;show(6)">{{addTask.who}}</td>
                <td><input ng-keypress="setDirty()" id="show6" type="text" ng-show="!whoShow" ng-model="addTask.who" ng-blur="whoShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.type}}</td>
                <td ng-init="typeShow=true" ng-show="typeShow" ng-dblclick="typeShow=false;show(7)">{{addTask.type}}</td>
                <td><input ng-keypress="setDirty()" id="show7" type="text" ng-show="!typeShow" ng-model="addTask.who" ng-blur="typeShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.relatedCompany}}</td>
                <td ng-init="relatedCompanyShow=true" ng-show="relatedCompanyShow" ng-dblclick="SelectForCompany()">{{relatedCompanyInfoShow()}}</td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.relatedContact}}</td>
                <td ng-init="relatedContactShow=true" ng-show="relatedContactShow" ng-dblclick="SelectForContact()">{{relatedContactInfoShow()}}</td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.relatedOpp}}</td>
                <td ng-init="relatedOppShow=true" ng-show="relatedOppShow" ng-dblclick="SelectForOpp()">{{relatedOppInfoShow()}}</td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.linkedActivityId}}</td>
                <td ng-init="linkedActivityIdShow=true" ng-show="linkedActivityIdShow" ng-dblclick="linkedActivityIdShow=false;show(11)">{{addTask.linkedActivityId}}</td>
                <td><input ng-keypress="setDirty()" id="show11" type="text" ng-show="!linkedActivityIdShow" ng-model="addTask.linkedActivityId" ng-blur="linkedActivityIdShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.linkedActivityType}}</td>
                <td ng-init="linkedActivityTypeShow=true" ng-show="linkedActivityTypeShow" ng-dblclick="linkedActivityTypeShow=false;show(12)">{{addTask.linkedActivityType}}</td>
                <td><input ng-keypress="setDirty()" id="show12" type="text" ng-show="!linkedActivityTypeShow" ng-model="addTask.linkedActivityType" ng-blur="linkedActivityTypeShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.isImportant}}</td>
                <td ng-init="isImportantShow=true" ng-show="isImportantShow" ng-dblclick="isImportantShow=false;show(13)">{{addTask.isImportant}}</td>
                <td><input ng-keypress="setDirty()" id="show13" type="text" ng-show="!linkedActivityTypeShow" ng-model="addTask.linkedActivityType" ng-blur="isImportantShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.isImportant}}</td>
                <td ng-init="isImportantShow=true" ng-show="isImportantShow" ng-dblclick="isImportantShow=false;show(14)">{{addTask.isImportant}}</td>
                <td>
                    <select class="col-md-5" id="show14" ng-show="!isImportantShow" ng-model="addTask.isImportant" ng-blur="isImportantShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.isPrincipal}}</td>
                <td ng-init="isPrincipalShow=true" ng-show="isPrincipalShow" ng-dblclick="isPrincipalShow=false;show(15)">{{addTask.isPrincipal}}</td>
                <td>
                    <select class="col-md-5" id="show15" ng-show="!isPrincipalShow" ng-model="addTask.isPrincipal" ng-blur="isPrincipalShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{TaskKey.isDelayed}}</td>
                <td ng-init="isDelayedShow=true" ng-show="isDelayedShow" ng-dblclick="isDelayedShow=false;show(16)">{{addTask.isDelayed}}</td>
                <td>
                    <select class="col-md-5" id="show16" ng-show="!isDelayedShow" ng-model="addTask.isDelayed" ng-blur="isDelayedShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            </tbody>
            </table>
            <span class="input-group-btn">
                 <a class="btn btn-warning" ng-click="BackToCal()">返回任务表</a>
            </span>
            <span class="input-group-btn">
                 <a class="btn btn-warning" ng-click="AddToDataBase()">保存</a>
            </span>
        </div>
    </div>